window.onload = function(){
	//获取节点
	var emai = document.getElementById("emai");
	var pwd = document.getElementById("pwd");
	var btnsub = document.getElementById("btnsub");
	//console.log(emai);//检测节点是否被获取
	btnsub.onclick = function(){
		var youX = emai.value;
		var miM = pwd.value;
		if(youX == "" || youX.indexOf("@") == -1 || youX.indexOf(".") == -1){
			alert("请重新输入你的Email地址");
		}else if(miM.length <10 ){
			alert("请输入10位以上的密码");
		}
	}//给按钮添加点击事件
}//加载函数
